Xceed Grid for WinForms v4.3 Documentation
CopyProperties(Object,Object,Type,String[]) Method


Xceed.UI.v1.4 Assembly > Xceed.UI Namespace > ThemedControl Class : CopyProperties(Object,Object,Type,String[]) Method
A reference to the System.Windows.Forms.Control to clone.
A reference to the cloned control.
The source and destination controls' type.
A string array containing the names of the properties whose values are to be excluded from the cloning process.
Copies the values of the properties from the source control to the cloned instance.
Syntax
'Declaration
 
Public Shared Sub CopyProperties( _
   ByVal source As Object, _
   ByVal destination As Object, _
   ByVal type As Type, _
   ByVal excludedPropertyNames() As String _
) 
'Usage
 
Dim source As Object
Dim destination As Object
Dim type As Type
Dim excludedPropertyNames() As String
 
ThemedControl.CopyProperties(source, destination, type, excludedPropertyNames)
public static void CopyProperties( 
   object source,
   object destination,
   Type type,
   string[] excludedPropertyNames
)

Parameters

source
A reference to the System.Windows.Forms.Control to clone.
destination
A reference to the cloned control.
type
The source and destination controls' type.
excludedPropertyNames
A string array containing the names of the properties whose values are to be excluded from the cloning process.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ThemedControl Class
ThemedControl Members